package com.celtic.webapp.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.celtic.service.ProjectUrlManager;

@Controller
@RequestMapping("projectUrls")
public class ProjectUrlController extends BaseFormController {

	@Autowired
	private ProjectUrlManager projectUrlManager;
	
	@RequestMapping(method=RequestMethod.GET)
	public ModelAndView handleRequest() throws Exception{
		return new ModelAndView().addObject(projectUrlManager.getAll());
	}
}
